package jdtprototype;

import java.io.File;

import org.eclipse.epsilon.eol.EolModule;

/**
 * for test
 * @author Cheng Yun
 *
 */
public class JdtMain {

	public static void main(String[] args) throws Exception {

		EolModule module = new EolModule();
		module.parse("traverse (); "
				+ "operation Any traverse () : Integer{"
				+ "for (p in JavaProject.all) {" 
				+ "p.println();}"
				+ "return 0;}");

		JdtModel model = new JdtModel();
		model.setName("JDTModel");

		module.getContext().getModelRepository().addModel(model);

		module.execute();

	}

}
